package threadcoreknowledge.createthread.threadobjectclasscommommethods;

public class Id {

    public static void main(String[] args) {
        Thread thread = new Thread();


        System.out.println("主线程的ID"+Thread.currentThread().getId());
        System.out.println("子线程的ID"+thread.getId());
    }

}
